package cn.yanjr.system.dao;

import java.util.List;

import cn.yanjr.common.dao.BaseDao;
import cn.yanjr.system.entity.SysRole;

public interface SysRoleDao extends BaseDao<String, SysRole> {
	
	public List<SysRole> getAll();
	
	public List<SysRole> findAll(SysRole role);
	
	public SysRole findOne(String id);
	
	public int save(SysRole role);
	
	public int update(SysRole role);
	
	public int delete(String id);
	
	public List<SysRole> getUserRoles(String userId);
	
}
